# Replication instructions for "Societal determinants of flood-induced displacement"

Authors: Jonas Vestby, Sebastian Schutte, Andreas F. Tollefsen, Halvard Buhaug

Please contact Halvard Buhaug (halvard@prio.org) or Jonas Vestby (jonves@prio.org) for questions regarding the study, replication, or the data.

## How to replicate this study

1. Download data from Harvard Dataverse:
2. Clone this repository to your local machine. See [https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository|GitHub Documentation] for how to do this.
3. Copy the data from Harvard Dataverse to {cloned_directory}/data
4. Open RStudio, File -> New Project -> Existing Directory, Choose the cloned directory
5. Open "src/descriptive_statistics.R". Install all required packages. Run the script. Results are stored in {cloned_directory}/brm_results/(figures|tables)
6. Open "src/analysis.R". Install all required packages. Run the script. This took approx. 9 hours using 8 Cores on a Ryzen 7 3700. Results are stored in {cloned_directory}/brm_results/(figures|tables)